import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import store from './store';

// 1. 从react-redux导入组件Provider
import { Provider } from 'react-redux';
const root = ReactDOM.createRoot(document.querySelector('#root'));

root.render(
  // 2. 建立Redux和React的链接：  Provider包住App组件， 💥💥设置store
  <Provider store={store}>
    <App></App>
  </Provider>
);
